<%-- 
    Document   : login
    Created on : 21.07.2009, 21:52:44
    Author     : Mario
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="serverStyles.css" />
        <title>FBIS - ADMIN / LOGIN</title>
    </head>
    <body>
        <jsp:useBean id="consumers" scope="session" class="de.stalinski.db.ConsumersConnector" />
        <%
        String user = request.getParameter("user");
        String pass = request.getParameter("pass");

        if (consumers.isAuthenticated(user, pass)) {
                       %><script>location.replace('menu.jsp')</script> <%
        } else {
            %><jsp:forward page="index.jsp"/><%
        }

        %>
    </body>
</html>
